// 文本类MIME类型

const text_mimes = [
    { label: '纯文本', value: 'text/plain', elTagType: 'text', elTagClass: 'info', themeClass: 'light', icon: "file-text" },
    { label: 'CSV', value: 'text/csv', elTagType: 'text', elTagClass: 'primary', themeClass: 'plain', icon: "file-excel" },
    { label: 'HTML', value: 'text/html', elTagType: 'text', elTagClass: 'warning', themeClass: 'plain', icon: "file-code" },
    { label: 'CSS', value: 'text/css', elTagType: 'text', elTagClass: 'success', themeClass: 'plain', icon: "file-code" },
    { label: 'JavaScript', value: 'text/javascript', elTagType: 'text', elTagClass: 'warning', themeClass: 'plain', icon: "file-code" },
    { label: 'XML', value: 'text/xml', elTagType: 'text', elTagClass: 'danger', themeClass: 'plain', icon: "file-code" },
    { label: 'Markdown', value: 'text/markdown', elTagType: 'text', elTagClass: 'info', themeClass: 'plain', icon: "file-markdown" }
];

// 图像类MIME类型
export const image_mimes = [
    { label: 'JPEG', value: 'image/jpeg', elTagType: 'text', elTagClass: 'success', themeClass: 'plain', icon: "file-image" },
    { label: 'PNG', value: 'image/png', elTagType: 'text', elTagClass: 'warning', themeClass: 'plain', icon: "file-image" },
    { label: 'GIF', value: 'image/gif', elTagType: 'text', elTagClass: 'danger', themeClass: 'plain', icon: "file-image" },
    { label: 'SVG', value: 'image/svg+xml', elTagType: 'text', elTagClass: 'primary', themeClass: 'plain', icon: "file-code" },
    { label: 'WebP', value: 'image/webp', elTagType: 'text', elTagClass: 'info', themeClass: 'plain', icon: "file-image" },
    { label: 'BMP', value: 'image/bmp', elTagType: 'text', elTagClass: 'success', themeClass: 'plain', icon: "file-image" },
    { label: 'ICO', value: 'image/x-icon', elTagType: 'text', elTagClass: 'warning', themeClass: 'plain', icon: "file-image" },
    { label: 'TIFF', value: 'image/tiff', elTagType: 'text', elTagClass: 'danger', themeClass: 'plain', icon: "file-image" }
];

// 音频类MIME类型
export const audio_mimes = [
    { label: 'MP3', value: 'audio/mpeg', elTagType: 'text', elTagClass: 'success', themeClass: 'plain', icon: "file-audio" },
    { label: 'WAV', value: 'audio/wav', elTagType: 'text', elTagClass: 'primary', themeClass: 'plain', icon: "file-audio" },
    { label: 'AAC', value: 'audio/aac', elTagType: 'text', elTagClass: 'warning', themeClass: 'plain', icon: "file-audio" },
    { label: 'OGG', value: 'audio/ogg', elTagType: 'text', elTagClass: 'danger', themeClass: 'plain', icon: "file-audio" },
    { label: 'FLAC', value: 'audio/flac', elTagType: 'text', elTagClass: 'info', themeClass: 'plain', icon: "file-audio" },
    { label: 'WebM音频', value: 'audio/webm', elTagType: 'text', elTagClass: 'success', themeClass: 'plain', icon: "file-audio" },
    { label: 'MIDI', value: 'audio/midi', elTagType: 'text', elTagClass: 'primary', themeClass: 'plain', icon: "file-midi" },
    { label: '3GPP音频', value: 'audio/3gpp', elTagType: 'text', elTagClass: 'warning', themeClass: 'plain', icon: "file-audio" }
];

// 应用类MIME类型
export const app_mimes = [
    { label: 'PDF', value: 'application/pdf', elTagType: 'text', elTagClass: 'danger', themeClass: 'plain', icon: "file-pdf" },
    { label: 'Word', value: 'application/msword', elTagType: 'text', elTagClass: 'primary', themeClass: 'plain', icon: "file-word" },
    { label: 'Excel', value: 'application/vnd.ms-excel', elTagType: 'text', elTagClass: 'success', themeClass: 'plain', icon: "file-excel" },
    { label: 'PPT', value: 'application/vnd.ms-powerpoint', elTagType: 'text', elTagClass: 'warning', themeClass: 'plain', icon: "file-ppt" },
    { label: 'RTF', value: 'application/rtf', elTagType: 'text', elTagClass: 'info', themeClass: 'plain', icon: "file-text" },
    { label: 'ZIP', value: 'application/zip', elTagType: 'text', elTagClass: 'primary', themeClass: 'plain', icon: "file-zip" },
    { label: '7z', value: 'application/x-7z-compressed', elTagType: 'text', elTagClass: 'success', themeClass: 'plain', icon: "file-zip" },
    { label: 'RAR', value: 'application/vnd.rar', elTagType: 'text', elTagClass: 'warning', themeClass: 'plain', icon: "file-zip" }
];

// 视频类MIME类型
export const video_mimes = [
    { label: 'MP4', value: 'video/mp4', elTagType: 'text', elTagClass: 'danger', themeClass: 'plain', icon: "file-video" },
    { label: 'AVI', value: 'video/x-msvideo', elTagType: 'text', elTagClass: 'primary', themeClass: 'plain', icon: "file-video" },
    { label: 'MOV', value: 'video/quicktime', elTagType: 'text', elTagClass: 'success', themeClass: 'plain', icon: "file-video" },
    { label: 'WMV', value: 'video/x-ms-wmv', elTagType: 'text', elTagClass: 'warning', themeClass: 'plain', icon: "file-video" },
    { label: 'MKV', value: 'video/x-matroska', elTagType: 'text', elTagClass: 'info', themeClass: 'plain', icon: "file-video" },
    { label: 'FLV', value: 'video/x-flv', elTagType: 'text', elTagClass: 'primary', themeClass: 'plain', icon: "file-video" },
    { label: 'WebM视频', value: 'video/webm', elTagType: 'text', elTagClass: 'success', themeClass: 'plain', icon: "file-video" },
    { label: '3GPP视频', value: 'video/3gpp', elTagType: 'text', elTagClass: 'warning', themeClass: 'plain', icon: "file-video" }
];

// 字体类MIME类型
export const font_mimes = [
    { label: 'TTF', value: 'font/ttf', elTagType: 'text', elTagClass: 'primary', themeClass: 'plain', icon: "file-font" },
    { label: 'OTF', value: 'font/otf', elTagType: 'text', elTagClass: 'success', themeClass: 'plain', icon: "file-font" },
    { label: 'WOFF', value: 'font/woff', elTagType: 'text', elTagClass: 'warning', themeClass: 'plain', icon: "file-font" },
    { label: 'WOFF2', value: 'font/woff2', elTagType: 'text', elTagClass: 'danger', themeClass: 'plain', icon: "file-font" }
];

export const text = {
    label: '文本类',
    name: 'text',
    mimes: text_mimes
}

export const image = {
    label: '图像类',
    name: 'image',
    mimes: image_mimes
}

export const audio = {
    label: '音频类',
    name: 'audio',
    mimes: audio_mimes
}

export const app = {
    label: '应用类',
    name: 'application',
    mimes: app_mimes
}

export const video = {
    label: '视频类',
    name: 'video',
    mimes: video_mimes
}


export const font = {
    label: '字体类',
    name: 'font',
    mimes: font_mimes
}

export default {
    text,
    image,
    audio,
    application: app,
    video,
    font
};